
package com.google.earth.kml;

/** 
 * Schema fragment(s) for this class:
 * <pre>
 * &lt;xs:element xmlns:ns="http://earth.google.com/kml/2.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:CoordinatesType" name="coordinates"/>
 * 
 * &lt;xs:simpleType xmlns:ns="http://earth.google.com/kml/2.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CoordinatesType">
 *   &lt;xs:list itemType="xs:string"/>
 * &lt;/xs:simpleType>
 * </pre>
 */
public class Coordinates
{
    private java.util.List<String> strings = new java.util.ArrayList<String>();

    /** 
     * Get the list of 'coordinates' element items.
     * 
     * @return list
     */
    public java.util.List<String> getStrings() {
        return strings;
    }

    /** 
     * Set the list of 'coordinates' element items.
     * 
     * @param list
     */
    public void setStrings(java.util.List<String> list) {
        strings = list;
    }

    /** 
     * Serializer for 'coordinates' element list.
     * 
     * @param values
     * @return text
     */
    public static String serializeStrings(java.util.List<String> values) {
        if (values == null) {
            return null;
        } else {
            java.lang.StringBuffer buff = new java.lang.StringBuffer();
            for (java.util.Iterator<String> iter = values.iterator(); iter
                    .hasNext();) {
                if (buff.length() > 0) {
                    buff.append(' ');
                }
                String value = iter.next();
                buff.append(value);
            }
            return buff.toString();
        }
    }

    /** 
     * Deserializer for 'coordinates' element list.
     * 
     * @param text
     * @return values
     * @throws org.jibx.runtime.JiBXException on conversion error
     */
    public static java.util.List<String> deserializeStrings(String text)
            throws org.jibx.runtime.JiBXException {
        org.jibx.runtime.IListItemDeserializer ldser = new org.jibx.runtime.IListItemDeserializer() {
            public java.lang.Object deserialize(String text) {
                return text;
            }
        };
        return (java.util.List<String>) org.jibx.runtime.Utility
                .deserializeList(text, ldser);
    }
}
